home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 43
/
Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso
/
Aminet
/
comm
/
mail
/
YAMGenesis.lha
/
YAMGenesis
/
GenesisOnline.yam
< prev
next >
Wrap
Text File
|
2001-03-01
|
1KB
|
57 lines
/* GenesisOnline.yam - Go online in Genesis
*
* $VER: GenesisOnline.yam 1.01 (1.3.01) © H. van der Ree <hivdree@uwnet.nl>
*
* Don't forget to change the interface into the one you use!
*/
OPTIONS RESULTS
/* Change this path if required */
genesispath = "AmiTCP:Genesis"
genesisport = "GENESIS"
/* Change this to the interface you use */
interface = "ppp0"
/* Make sure the necessary libraries are available */
IF ~SHOW('L', 'rexxdossupport.library') THEN
CALL ADDLIB('rexxdossupport.library', 0, -30)
action = GETVAR(YAMSTARTED, "GLOBAL")
IF action = "YES" THEN DO
CALL DELETEVAR(YAMSTARTED, "GLOBAL")
EXIT 0
END
RCN = 0
ADDRESS COMMAND
IF ~SHOW('P', genesisport) THEN DO
'c:wbstarter' genesispath
'WaitForPort' genesisport
CALL SETVAR(STARTEDBYYAM, "YES", "GLOBAL")
CALL DELAY(100)
END
ADDRESS VALUE genesisport
ISONLINE interface
IF RC = 0 THEN DO
SHOW /* Open Genesis window */
CALL SETVAR(YAMSTART, "YES", "GLOBAL")
CALL SETVAR(GENESISINTERFACE, interface, "GLOBAL")
ONLINE interface
DO UNTIL RCN = 1
ISONLINE interface /* 0 = OFFLINE, 1 = ONLINE, 2 = DAILING */
RCN = RC
IF RCN = 0 THEN DO
CALL DELETEVAR(YAMSTART, "GLOBAL")
EXIT 5
END
IF RCN ~= 1 THEN DELAY(100)
END
CALL DELAY(100) /* Wait 2 secs before going to YAM! */
END
EXIT 0